package com.hq.fxh.No1_Infromation.Infor.Adapter;

import android.content.Context;
import android.view.View;

import com.bumptech.glide.Glide;
import com.hq.fxh.Utils.LogUtils;

/**
 * /**
 *
 * @author 薛
 * @ClassName
 * @Description :
 * @Created 2017/8/9
 * @Email xlwenhao1858@sina.com
 */


class Help_Infor_NewsType4 {
    Context context;
    Adapter_recycle_infor.NewsType4ViewHolder holder;


    public Help_Infor_NewsType4(Context mcontext, Adapter_recycle_infor.NewsType4ViewHolder mholder) {
        context = mcontext;
        holder = mholder;


    }

   public void doForNewsType4(int type) {
     /*   if (type == -1) {
            LogUtils.e("newsType2中初始化type失败");
        } else if (type == 1) {

            holder.newsType4LinyoutAD.setVisibility(View.GONE);
            holder.newsType4LinyoutNoAD.setVisibility(View.VISIBLE);
            holder.NewsType4LinyoutCopyRight.setVisibility(View.VISIBLE);
            holder.NewsType4LinyoutAuthor.setVisibility(View.GONE);
        } else if (type == 2) {

            holder.newsType4LinyoutAD.setVisibility(View.GONE);
            holder.newsType4LinyoutNoAD.setVisibility(View.VISIBLE);
            holder.NewsType4LinyoutCopyRight.setVisibility(View.GONE);
            holder.NewsType4LinyoutAuthor.setVisibility(View.VISIBLE);
        } else if (type == 3) {

            holder.newsType4LinyoutAD.setVisibility(View.VISIBLE);
            holder.newsType4LinyoutNoAD.setVisibility(View.GONE);

        } else {
            LogUtils.e("newsType2中type值异常");
        }*/
        Glide.with(context).load("https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3948656430,2360060343&fm=26&gp=0.jpg")
                .centerCrop()  .into(holder.newImageView);
     }
}
